<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>输出数组的长度</title>
</head>
<body>
    <script>
        var arr=[81,82,83,91,59];
        for(i=0;i<arr.length;i++){
            document.write("第"+(i+1)+"个同学的分数为"+arr[i]+"\t");
        }
        document.write("数组长度为："+arr.length);
    </script>
</body>
</html>